import request from '@/utils/request'

// 查询付款流水列表
export function listPayInfo(query) {
  return request({
    url: '/prod-api/order/payInfo/list',
    method: 'get',
    params: query
  })
}

// 查询付款流水详细
export function getPayInfo(payUid) {
  return request({
    url: '/prod-api/order/payInfo/' + payUid,
    method: 'get'
  })
}

// 新增付款流水
export function addPayInfo(data) {
  return request({
    url: '/prod-api/order/payInfo',
    method: 'post',
    data: data
  })
}

// 修改付款流水
export function updatePayInfo(data) {
  return request({
    url: '/prod-api/order/payInfo',
    method: 'put',
    data: data
  })
}

// 删除付款流水
export function delPayInfo(payUid) {
  return request({
    url: '/prod-api/order/payInfo/' + payUid,
    method: 'delete'
  })
}
